package com.hh.service.service.merchant;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hh.common.model.merchant.MerchantMenu;
import com.hh.common.request.SystemMenuRequest;
import com.hh.common.request.SystemMenuSearchRequest;
import com.hh.common.vo.MenuCheckVo;

import java.util.List;

public interface MerchantMenuService extends IService<MerchantMenu> {
    List<MerchantMenu> getAllPermissions(String merId);

    List<MerchantMenu> findPermissionByUserId(Integer id);

    List<MerchantMenu> getCacheList(String merId);

    List<MerchantMenu> getAdminList(SystemMenuSearchRequest request);

    Boolean add(SystemMenuRequest systemMenuRequest);

    Boolean deleteById(Integer id);

    Boolean edit(SystemMenuRequest systemMenuRequest);

    MerchantMenu getInfo(Integer id);

    Boolean updateShowStatus(Integer id);

    List<MenuCheckVo> getCacheTree();

    List<MerchantMenu> findAllCatalogue(String merId);

    List<MerchantMenu> getMenusByUserId(Integer id);

    Boolean initMenus(String merId);
}
